<template>
  <div>
    <form action="http://www.itcast.cn">
      <input type="text" />

      <button @click.prevent.stop="fn">提交</button>
    </form>
  </div>
</template>

<script>
export default {
  methods: {
    fn() {
      console.log(1);
    },
  },
};
</script>

<style>
</style>